Using a handler other than "handler"
am 27.09.2010 10:20:51 von bertolini.cedric--000e0cd5a01e12372c0491396866
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
I apologize for such a trivial question, but I'd like to use a function
other than "handler" as a perl handler. According to the doc, it was
possible in mod_perl 1, but I can't manage to get it to work under mod_perl
2.
Here is an example of my code:
file Authen.pm
> sub handler {
> // regular handling
> }
>
> sub special {
> // special case
> }
file httpd.conf
>
> PerlAuthenHandler /lib/Authen
>
>
> # I want to override the regular case by using "special" instead of
"handler" in /lib/Authen.pm
>
Thanks in advance,
C=E9dric Bertolini
--000e0cd5a01e12372c0491396866
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,
I apolog=
ize for such a trivial question, but I'd like to use a function other t=
han "handler" as a perl handler. According to the doc, it was pos=
sible in mod_perl 1, but I can't manage to get it to work under mod_per=
l 2.
Here is an example of my code:
file Authen.pm
> su=
b handler {
> =A0 // regular handling
> }
>
> sub =
special {
> =A0 // special case
> }
file httpd.conf
<=
br>
> <Location /perl/>
>=A0 =A0 PerlAuthenHandler=A0 /lib/Authe=
n
> </Location>
> <Location /perl/special-case/>=
;
> =A0 # I want to override the regular case by using "special&=
quot; instead of "handler" in /lib/Authen.pm
> </Location>
Thanks in advance,
C=E9dric Bertolini
<=
br>
--000e0cd5a01e12372c0491396866--